www.gusucode.com > VC++ ASP文件上传组件源代码+调用示例-源码程序 > VC++ ASP文件上传组件源代码+调用示例-源码程序/code/aspup_src/MyRequest/StdAfx.cpp
//Download by http://www.NewXing.com // stdafx.cpp : source file that includes just the standard includes // stdafx.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" #ifdef _ATL_STATIC_REGISTRY #include <statreg.h> #include <statreg.cpp> #endif #include <atlimpl.cpp> HRESULT Error(LPCOLESTR lpszSource, LPCOLESTR lpszDesc, const IID& iid, HRESULT hRes) { hRes = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, hRes + 0x200); CComPtr<ICreateErrorInfo> pICEI; if(SUCCEEDED(CreateErrorInfo(&pICEI))) { CComPtr<IErrorInfo> pErrorInfo; pICEI->SetGUID(iid); if(lpszSource != NULL) pICEI->SetSource(LPOLESTR(lpszSource)); pICEI->SetDescription((LPOLESTR)lpszDesc); if(SUCCEEDED(pICEI->QueryInterface(IID_IErrorInfo, (void**)&pErrorInfo))) SetErrorInfo(0, pErrorInfo); } return (hRes == 0) ? DISP_E_EXCEPTION : hRes; } #ifndef OLE2ANSI HRESULT Error(LPCSTR lpszSource, LPCSTR lpszDesc, const IID& iid, HRESULT hRes) { ATLASSERT(lpszSource != NULL); ATLASSERT(lpszDesc != NULL); USES_CONVERSION; return Error(A2COLE(lpszSource), A2COLE(lpszDesc), iid, hRes); } #endif